using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace DataLoad.iContact.WinClient
{
    public partial class frmCleanUpPhone : Form
    {
        public frmCleanUpPhone()
        {
            InitializeComponent();
        }

        public static DialogResult Show(string number)
        {
            using (frmCleanUpPhone frm = new frmCleanUpPhone())
            {
                frm.lblNumber.Text = number;
                using (Graphics g = frm.lblNumber.CreateGraphics())
                {
                    int lblWidth = (int)g.MeasureString(number, frm.lblNumber.Font).Width;
                    frm.lblNumber.Left = (frm.ClientSize.Width - lblWidth) / 2;
                }

                return frm.ShowDialog();
            }
        }
    }
}